import React, {Component} from 'react';
import io from 'socket.io-client';
import { List, InputItem } from 'antd-mobile';
export default class Chat extends Component {
    constructor(props) {
        super(props)
        this.state = {text:''}
    }
    componentDidMount(){
        const socket = io('ws://localhost:9093')
    }
    render() {
        console.log(this.props)
        return (
            <div className='stick-footer'>
                <List>
                    <InputItem
                     placeholder='请输入'
                     value={this.state.text}
                     onChange={v=>{this.setState({text:v})}}
                     extra={<span onClick={()=>this.handleSubmit}>发送</span>}
                    >
                    </InputItem>
                </List>
            </div>
        );
    }
}